package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    void saveBatch(List<OrderDetail> orderDetailList);

    /**
     * 功能描述: 根据订单id查询订单详情
     * @return : java.util.List<com.sky.entity.OrderDetail>
     */
    List<OrderDetail> findByOrdersId(Long id);

    /**
     * 功能描述: 根据订单id 查询订单详情
     * @param OrderId
     * @return : java.util.List<com.sky.entity.OrderDetail>
     */
    List<OrderDetail> findOrderDetailByOrderId( @Param("id") Long OrderId);
}
